import {http} from '@/plugins/axios'
import {userModel} from '@/types/auth.ts'

export function loginAuth(data: userModel) {
    return http.request({
        url: '/auth/login',
        method: 'post',
        data,
    })
}
export function uploadFile(data:any){
    return http.request({
        url: '/upload',
        method: 'post',
        data
    })
}
export function userInfo(){
    return http.request({
        url:'/auth/userInfo',
        method: 'get'
    })
}

export function updateUserInfo(data:any){
    return http.request({
        url:'/auth',
        method: 'put',
        data
    })
}
